/*********************************************************
          File Name:9.40.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sat 20 Feb 2016 07:11:32 PM CST
**********************************************************/

#include <iostream>
#include <vector>
#include <string>

int main(int argc, char *argv[])
{
    using namespace std;
    vector<string> vs;
    vs.reserve(1024);
    string w = "pisces";

    if(argc != 2)
        return 1;
    int n = atoi(argv[1]);

    cout << "capcity: " << vs.capacity() << "\n";
    cout << "size: " << vs.size() << "\n";
    for(int i = 0; i < n; ++i)
        vs.push_back(w);
    vs.resize(vs.size() + vs.size() / 2);
    cout << "capcity: " << vs.capacity() << "\n";
    cout << "size: " << vs.size() << "\n";
    return 0;
    cout << "size: " << vs.size() << "\n";
}
